# a = 'c'
# b = "cd"
# print(type(a))
# print(type(b))

# 单行注释演示

"""
文档注释演示
"""
# a = 10
# print(a/10)
# print(a//3)
# print(a%3)
# print(2**3)

# a=float(input("test1:"))
# b=float(input("test2:"))
# c=float(input("test3:"))
# d=float(input("test4:"))
#
#
# print((a+b+c+d)/4)

# name="Bob"
# age=18
# print(f"name={name},age={age}")

# print(10%3)
# print(10%-3)
# print(-10%-3)
# print(-10%3)

# a=True
# b=3
# print(a+b)

# a=int(input("a="))
#
# if a==1:
#     pass
# else:
#     print("hello world")

# for i in range(2,11):
#     print(i)

# a=int(input("a="))
#
# if 10 < a < 20:
#     print("A")
# elif 20 < a < 30:
#     print("B")
# def cal_sum(a):
#     res=0
#     for i in range(1,a+1):
#         res+=i
#     return res
#
#
# print(cal_sum(10))
# print(cal_sum(100))

# 列表和元组
# list1=[True,False,"a",11,"hello"]
#
# # for i in list1:
# #     print(i)
# # print("------")
#
# print(list1[-2])
# print(len(list1))
# print(list1[1:3])

# list1=[1,2,3,4,5,6,7,8,9]
#
# print(list1[::-2])
# print(list1[::2])
#
# list1.append(10)
# list1.insert(1,1.5)
# for item in list1:
#     print(item)

# table={
#     "name":"zhang",
#     "age":18,
#     "gender":[1,2,3,4]
# }
#
# for k,v in table.items():
#     print(f"{k}:{v}")
# with open("F:/presentation/demo.txt","w",encoding="utf-8") as f:
#     f.write("world!!")




